package com.songlanyun.modules.applyareaagent.dao;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.songlanyun.modules.applyareaagent.entity.ApplyAreaAgentEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.songlanyun.modules.applyareaagent.entity.ApplyAreaAgentVo;
import com.songlanyun.modules.shop.model.vo.ShopSlimVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 申请区域代理
 *
 * @author lubo
 * @email sunlightcs@gmail.com
 * @date 2022-09-29 14:33:03
 */
@Mapper
public interface ApplyAreaAgentDao extends BaseMapper<ApplyAreaAgentEntity> {

    IPage<ApplyAreaAgentVo> queryCustomPage(IPage<ApplyAreaAgentVo> page, @Param("map") Map<String, Object> params);

    List<ShopSlimVO> myOfflineShops(@Param("areaCode") String areaCode);

    List<ShopSlimVO> myOnlineShops(String areaCode);
}
